package com.gxa.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Alarm {
    //告警规则id
    private int alarmRulesId;

    //告警规则名称
    private String alarmRulesName;

    //通知用户
    private String notifyUsers;

    //推送方式
    private String pushMode;

    //告警规则
    private  String alarmRules;

    //告警类型
    private String alarmType;

    //告警等级
    private String alarmLevel;

    //创建时间
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date creatTime;

    public Alarm(int alarmRulesId, String alarmRulesName, String notifyUsers, String pushMode, String alarmRules, String alarmType, String alarmLevel, Date creatTime) {
        this.alarmRulesId = alarmRulesId;
        this.alarmRulesName = alarmRulesName;
        this.notifyUsers = notifyUsers;
        this.pushMode = pushMode;
        this.alarmRules = alarmRules;
        this.alarmType = alarmType;
        this.alarmLevel = alarmLevel;
        this.creatTime = creatTime;
    }

    public Alarm() {

    }

    @Override
    public String toString() {
        return "Alarm{" +
                "alarmRulesId=" + alarmRulesId +
                ", alarmRulesName='" + alarmRulesName + '\'' +
                ", notifyUsers='" + notifyUsers + '\'' +
                ", pushMode='" + pushMode + '\'' +
                ", alarmRules='" + alarmRules + '\'' +
                ", alarmType='" + alarmType + '\'' +
                ", alarmLevel='" + alarmLevel + '\'' +
                ", creatTime=" + creatTime +
                '}';
    }

    public int getAlarmRulesId() {
        return alarmRulesId;
    }

    public void setAlarmRulesId(int alarmRulesId) {
        this.alarmRulesId = alarmRulesId;
    }

    public String getAlarmRulesName() {
        return alarmRulesName;
    }

    public void setAlarmRulesName(String alarmRulesName) {
        this.alarmRulesName = alarmRulesName;
    }

    public String getNotifyUsers() {
        return notifyUsers;
    }

    public void setNotifyUsers(String notifyUsers) {
        this.notifyUsers = notifyUsers;
    }

    public String getPushMode() {
        return pushMode;
    }

    public void setPushMode(String pushMode) {
        this.pushMode = pushMode;
    }

    public String getAlarmRules() {
        return alarmRules;
    }

    public void setAlarmRules(String alarmRules) {
        this.alarmRules = alarmRules;
    }

    public String getAlarmType() {
        return alarmType;
    }

    public void setAlarmType(String alarmType) {
        this.alarmType = alarmType;
    }

    public String getAlarmLevel() {
        return alarmLevel;
    }

    public void setAlarmLevel(String alarmLevel) {
        this.alarmLevel = alarmLevel;
    }

    public Date getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(Date creatTime) {
        this.creatTime = creatTime;
    }
}
